package com.ghj.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.io.Serializable;

 @Data
 @NoArgsConstructor
 @AllArgsConstructor
@TableName("user")
public class User implements Serializable {
     @TableId
    @TableField("user_id")
    private String userId;

     @TableField("user_name")
    private String  userName;

    @TableField("email")
    private String email;

    @TableField( "cellphone")
    private String cellphone;

    @TableField( "password")
    private String password;

    @TableField( "salt")
    private String salt;
    /**
    * 0为删除，1为正常
    */
    @TableField("state")
    @TableLogic //逻辑删除
    private Integer state;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}